package com.fun.xml2Json.xmlExercise;

/**
 * @author liyiruo
 * @Description
 * @Date 2021/6/22 下午6:25
 */
public class XmlTest extends XmlExercise {
    public static void main(String[] args) {
        String dataJson = "{\"part\":[{\"sex\":\"男\",\"name\":\"我是徐茅山\",\"age\":\"今年20岁\"},{\"sex\":\"男\",\"name\":\"我是李逍遥\",\"age\":\"今年22岁\"}]}";
        System.out.println("1===>" + dataJson);
        String xml = json2xml(dataJson);
        System.out.println("xml=>" + xml);
        String str = xml2json(xml);
        System.out.println("to_json=>" + str);
    }
}


